#!/bin/sh 

#checkout a project to a particular branch
#$1 ... project directory
#$2 ... branch to checkout
checkout_project()
{
    cd $1
    git checkout $2
    cd ..
}

#simple script to checkout all projects to the same branch
checkout_project libpnicore $1
checkout_project libpniio $1
checkout_project python-pniio $1

